package com.yu.aop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserService {
	
	
	public void goToSchool() {
		System.out.println("要去学校了");
	}

	
	public void markWork(UserModel userModel) {
		System.out.println(userModel.getAge()+"的"+userModel.getName()+"要去工作了");
	}
	
	
	public void goToPaly(UserModel userModel) {
		System.out.println(userModel.getAge()+"的"+userModel.getName()+"要出去玩了");
	}
	
}
